# 位运算
#按位与  8       3
#     1000  & 0011   = 0000
print(8&3)
#按位或  8       3
#     1000  | 0011   = 1011   8+2+1=11
print(8|3)
#按位异或  8       3
#       1000 ^ 0011   = 1011   8+2+1=11
print(8^3)

# 左移运算
# 8<<2
#0000 1000  <<2   =0010 0000   32
print(8<<2)

# 右移运算
# 8>>2
#0000 1000  >>2   =0000 0010  2
print(8>>2)
